polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.systemd1.manage-units" &&
            action.lookup("unit") == "{{ elk_role }}.service" &&
            subject.user == "{{ elk_user }}"
        ) {
            return polkit.Result.YES;
        }
    }
);
